package jdwl.hrmgrsys.dao.enterprise;

import java.util.List;

import jdwl.hrmgrsys.pojo.core.CommonPara;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.ssh.dao.CommonDao;
@Repository
public class EnterpriseParamDao extends CommonDao<CommonPara> {

	public List<CommonPara> queryCommonParasByType(String typeCode) {
		String queryString="from CommonPara p where p.type.code = :code ";
		Query query = getSession().createQuery(queryString).setParameter("code", typeCode);
		return query.list();
	}

}
